package com.woniuxy.entity;

import java.util.Date;

public class OneCard {
    int id;
    String cardNumber; //卡片编号
    int userid;
    Date createtime;
    double balance;//余额
    int status;//0正常状态 1是挂失 2注销

    public OneCard() {
    }

    public OneCard(String cardNumber, int userid, double balance) {
        this.cardNumber = cardNumber;
        this.userid = userid;
        this.balance = balance;
    }

    public OneCard(int id, String cardNumber, int userid, Date createtime, double balance, int status) {
        this.id = id;
        this.cardNumber = cardNumber;
        this.userid = userid;
        this.createtime = createtime;
        this.balance = balance;
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "OneCard{" +
                "id=" + id +
                ", cardNumber='" + cardNumber + '\'' +
                ", userid=" + userid +
                ", createtime=" + createtime +
                ", balance=" + balance +
                ", status=" + status +
                '}';
    }
}
